/**
 * 反馈api
 */
import request from "./axios";

/**
 * 获得反馈类型
 * @param pageSize
 * @returns {*}
 */
export const getType = () => {
    return request({
        url:'/feedback/getType',
        method:'get'
    })
}

/**
 * 获得反馈详情
 * @param pageSize
 * @returns {*}
 */
export const getFeedbackDetail = (id) => {
    return request({
        url:'/feedback/getFeedbackDetail',
        method:'get',
        params:{
            id
        }
    })
}
/**
 * 获得我的反馈
 * @param pageSize
 * @returns {*}
 */
export const getMyFeedbackList = () => {
    return request({
        url:'/feedback/getMyFeedbackList',
        method:'get'
    })
}

/**
 * 新增反馈
 * @param data
 * @returns {*}
 */
export const addFeedback = (data) => {
    return request.post('/feedback/addFeedback',data);
}

/**
 * 获得反馈列表
 * @param data
 * @returns {*}
 */
export const getFeedbackList = (data) => {
    return request.post('/feedback/getFeedbackList',data);
}

/**
 * 处理反馈
 * @param data
 * @returns {*}
 */
export const handlerFeedback = (data) => {
    return request.post('/feedback/handlerFeedback',data);
}
